<?php
     $user=$_POST['user'];
     $id=$_POST['id'];
     $xzdz=$_POST['xz'];
     require('sql.php');
      $a = mysqli_query($conn,"SELECT * FROM muban WHERE id='$id'");
$row = mysqli_fetch_array($a);//得到结果集，row[1]数字数组 row['href']关联数组 
    $c1= $row['id'] ;
	$c2= $row['src'];
	$c3= $row['href'];
	$c4= $row['style'];
	$c=$id.$user;
$sql = "INSERT INTO xiazai (ic,id,src,href,style,cookie,xzdz)
VALUES ('$c','$c1', '$c2','$c3','$c4','$user','$xzdz')";
if($c!="")
{
mysqli_query($conn, $sql);
}
mysqli_close($conn);
?>